from django.db import models

# Create your models here.
from core.models import CoreModel


# 文章分类模型
class ArticleCategory(CoreModel):
    cate_name = models.CharField(max_length=20, verbose_name="分类名称", help_text="分类名称")
    cate_alias = models.CharField(max_length=20, verbose_name="分类别名", help_text="分类别名")
    
    class Meta:
        db_table = "big_envet_category"
        verbose_name = "分类管理"
        verbose_name_plural = verbose_name
        ordering = ("-id",)
    def __str__(self) -> str:
        return self.cate_name